<div class="col_02" id="midPart_box">
	<div class="midPart_c ">
		<div class="userBox ">
			  <div class="m-t">
{literal}

<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAATdeyMKVMEFPfZpv20xC45BRTI-VBYgmLDqkfo3Vyvo7vETbY7BR6abDWrUXoP8oHUZotVp2e3tYLJA" type="text/javascript"></script>
<link href="http://www.google.com/uds/css/gsearch.css" rel="stylesheet" type="text/css"/>
<link href="./css/gsearch.css" rel="stylesheet" type="text/css"/>
 <style type="text/css">
      body, table, p{
        background-color: white;
        font-family: Arial, sans-serif;
        font-size: 13px;
      }

      h1 {
        font-size : 16px;
        font-weight : bold;
        border-top : 1px solid #e0e0e0;
        text-align : center;
        margin-bottom : 10px;
        padding-bottom : 4px;
        color : rgb(9, 122, 182);
      }

      h1 .tagline,
      h1 a,
      h1 a .tagline {
        font-size : 13px;
        font-weight : normal;
        color : rgb(9, 122, 182);
        cursor : pointer;
        text-decoration : none;
      }

      a span.tagline:hover {
        text-decoration : underline;
        color : rgb(237, 92, 11);
      }

      table.search-control {
        width : 100%;
      }

      table.search-control .gsc-control {
        width : 100%;
      }

      td.left {
        width : 500px;
        padding-right : 20px;
      }

      td {
        vertical-align : top;
      }

      /* Disable built in search forms */
      .gsc-control form.gsc-search-box {
        display : none;
      }

      /* restrict global search form width */
      #searchForm {
        width : 500px;
      }

      /* disable twiddle and size selectors for left column */
      #leftSearchControl .gsc-twiddle {
        background-image : none;
      }

      #leftSearchControl .gsc-resultsHeader .gsc-title {
        padding-left : 0px;
        font-weight : bold;
        font-size : 14px;
      }

      #leftSearchControl .gsc-resultsHeader div.gsc-results-selector {
        display : none;
      }

      #leftSearchControl .gsc-resultsRoot {
        padding-top : 6px;
      }

      /* for demonstration purposes ONLY. This is not ok by the terms */
      #rightSearchControl .gsc-ad-box {
        display : none;
      }

      /* long form visible urls should be on */
      .gsc-webResult div.gs-visibleUrl-long {
        display : block;
      }

      .gsc-webResult div.gs-visibleUrl-short {
        display : none;
      }
		
	  .main-wrap table td, .main-wrap table th{
		border:0;
	  }

    </style>
	<script type="text/javascript">

      // the cse class encapsulates a left and right search control
      // both controls are driven by a shared search form
      function cse() {
        var sFormDiv = document.getElementById("searchForm");
        var leftScDiv = document.getElementById("leftSearchControl");
        var rightScDiv = document.getElementById("rightSearchControl");

        // create a left, right search control
        // create a custom search form
        this.leftControl = new GSearchControl();
        this.rightControl = new GSearchControl();
        this.searchForm = new GSearchForm(true, sFormDiv);

        // bind clear and submit functions
        this.searchForm.setOnSubmitCallback(this, cse.prototype.onSubmit);
        this.searchForm.setOnClearCallback(this, cse.prototype.onClear);

        // set up for large result sets
        this.leftControl.setResultSetSize(GSearch.LARGE_RESULTSET);
        this.rightControl.setResultSetSize(GSearch.LARGE_RESULTSET);
        //this.leftControl.setLinkTarget(GSearch.LINK_TARGET_SELF);
        //this.rightControl.setLinkTarget(GSearch.LINK_TARGET_SELF);

        var searcher;
        var options;

        // configure left control
        // Site Restrict to CSE ID for Curriculum Search
        var cseId = "017576662512468239146:omuauf_lfve";
        searcher = new GwebSearch();
        options = new GsearcherOptions();
        searcher.setSiteRestriction(cseId, null,"http://code.google.com/edu/curriculumsearch/results.html?cx=017576662512468239146%3Aomuauf_lfve&q=__QUERY__&sa=Search&client=google-coop-np&cof=FORID%3A9%3BCX%3ACurriculum&hl=__HL__");
        searcher.setUserDefinedLabel("Curriculum Search");
        options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
        this.leftControl.addSearcher(searcher, options);
	//this.rightControl.setLinkTarget(searcher.LINK_TARGET_SELF)
        // configure right control for
        // -- Lectures Refinement
        // -- Assignments Refinement
        // -- Reference Refinement
        // -- blog search
        // -- web search
        // -- news search
		//News|Web|Blog|Forums|Prices

		searcher = new GnewsSearch()
        this.rightControl.addSearcher(searcher);

        searcher = new GwebSearch();
	    this.rightControl.addSearcher(searcher);

		searcher = new GblogSearch();
        this.rightControl.addSearcher(searcher);

        //options = new GsearcherOptions();
        //searcher.setSiteRestriction(cseId, "Lectures");
       // searcher.setUserDefinedLabel("Lectures");
       // this.rightControl.addSearcher(searcher, options);

        searcher = new GwebSearch();
        options = new GsearcherOptions();
        searcher.setSiteRestriction("google.com");
        searcher.setUserDefinedLabel("Forums");
        this.rightControl.addSearcher(searcher, options);

		searcher = new GwebSearch();
        options = new GsearcherOptions();
        searcher.setSiteRestriction("amazon.com");
        searcher.setUserDefinedLabel("Prices");
        this.rightControl.addSearcher(searcher, options);

		searcher = new GvideoSearch();
        this.rightControl.addSearcher(searcher);


        // draw the left and right controls
        // the right control is drawn in tabbed mode
        var drawOptions = new GdrawOptions();
        drawOptions.setDrawMode(GSearchControl.DRAW_MODE_TABBED);

        this.leftControl.draw(leftScDiv);
        this.rightControl.draw(rightScDiv, drawOptions);

        // execute a starter search
        this.searchForm.execute("News");

      }

      // when the form fires a submit, grab its
      // value and call the left and right control
      cse.prototype.onSubmit = function(form) {
        var q = form.input.value;
        if (q && q!= "") {
          this.leftControl.execute(q);
          this.rightControl.execute(q);
        }
        return false;
      }

      // when the form fires a clear, call the left and right control
      cse.prototype.onClear = function(form) {
        this.leftControl.clearAllResults();
        this.rightControl.clearAllResults();
        form.input.value = "";
        return false;
      }

      function OnLoad() {
        new cse();
      }
      GSearch.setOnLoadCallback(OnLoad);
    </script>{/literal}
        <h2>{if $utype == "employer"}Web Search - Use our custom designed tool to search the internet.{else}Web Search{/if}</h2>
</div>
<div class="u_c main-wrap">
        <p>
		  <div id="searchForm">Loading...</div>
		    <table class="search-control">
		      <td>
			<div id="rightSearchControl" class="search-control">Loading...</div>
		      </td>
		  </table>
	</p>
</div>
	</div>
	</div>
</div>